<!DOCTYPE html>
<html lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
<meta name="keywords" content="LightYear,LightYearAdmin,光年,后台模板,后台管理系统,光年HTML模板">
<meta name="description" content="Light Year Admin V5是一个基于Bootstrap v5.1.3的后台管理系统的HTML模板。">
<title>壹云印象</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/materialdesignicons.min.css">
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/style.min.css">

<link rel="stylesheet" type="text/css" href="__STATIC__/common/cch.css">
</head>
  
<body>
<div class="container-fluid">
  
  <div class="row">
    
    <div class="col-lg-12">
      <div class="card">
        <div class="card-body">
          <div class="card-search mb-2-5">
            <form class="search-form" method="get" action="{:url('index')}" >
              
              {include file="html/search" /}
              
            </form>
          </div>
          <div class="card-btns mb-2-5">
            <a class="btn btn-primary me-1 search_btn" href="#!"><i class="mdi mdi-magnify"></i> 搜索</a>
            <a class="btn btn-success me-1" href="{:url('add')}"><i class="mdi mdi-plus"></i> 新增</a>
            <a class="btn btn-danger more_delete_btn" href="#!" data-url='{:url("moreDelete",[],"")}'><i class="mdi mdi-window-close"></i> 删除</a>
          </div>
          <div class="table-responsive">
            <table class="table table-bordered">
              <thead>
                <tr>
                  <th>
                    <div class="form-check">
                      <input class="form-check-input" type="checkbox" id="check-all">
                      <label class="form-check-label" for="check-all"></label>
                    </div>
                  </th>
                  <th>来源</th>
                  <th>项目编号</th>
                  <th>业务编号</th>
                  <th>项目名称</th>
                  <th>询价类型</th>
                  <th>物业类型</th>
                  <th>物业名称</th>
                  <th>用途</th>
                  <th>备注</th>
                  <th>环节</th>
                  <th>当前处理人</th>
                  <th>客户全称</th>
                  <th>报告使用方</th>
                  <th>借款人</th>
                  <th>委托方</th>
                  <th>业务联系人</th> 
                  <th>业务员</th> 
                  <th>查勘状态</th>
                  <th>已转业务</th>
                  <th>单价</th>
                  <th>建筑面积(㎡)</th>
                  <th>土地面积(㎡)</th>
                  <th>评估总值(万元)</th>
                  <th>总税费(万元)</th>
                  <th>总净值(万元)</th>
                  <th>价格争议</th>
                  <th>估价师</th>
                  <th>回价时间</th>
                  <th>已出预评</th>
                  <th>已出报告</th>
                  <th>询价时间</th>
                  <th>委托类型</th>
                  <th>询价价格说明</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>
                <?php if (empty($list['data'])): ?>
                  <tr><td colspan="100" class="text-center">暂无数据</td></tr>
                <?php else: ?>
                  <?php foreach ($list['data'] as $k => $vo): ?>
                    <tr>
                      <td>
                        <div class="form-check">
                          <input type="checkbox" class="form-check-input ids" name="ids[]" value="{:$vo['id']}" id="ids-{:$vo['id']}">
                          <label class="form-check-label" for="ids-{:$vo['id']}"></label>
                        </div>
                      </td>
                      <td>{:$model->getSourceCn($vo['source'])}</td>
                      <td>{:$vo['order_sn']}</td>
                      <td></td>
                      <td>{:$vo['name']}</td>
                      <td>{:$vo['oform_num'] > 0 ? '多套' : '单套'}</td>
                      <td  title="{:implode("&#10;",$vo['oform_content'])}">{:$vo['oforms'][0]['form_name']} {:$vo['oform_num'] > 1 ? '('.$vo['oform_num'].')' : ''}</td>
                      <td>{:$vo['oforms'][0]['name']}</td>
                      <td></td>
                      <td>{:$vo['remark']}</td>
                      <td>{:$model->getStatusCn($vo['status'])}</td>
                      <td>{:$vo['admin']['truename']}</td>
                      <td>{:$vo['custom']['truename']}</td>
                      <td></td>
                      <td>{:$vo['borrower']}</td>
                      <td>{:$vo['client_name']}</td>
                      <td>{:$vo['business_contact']}</td>
                      <td>{:$vo['yw_admin']['truename']}</td>
                      <td>{:$model->getStatusCkCn($vo['status_ck'])}</td>
                      <td></td>
                      <td>{:$vo['order_price']['unit_price']}</td>
                      <td>{:array_sum(array_column($vo['oforms'],'jzmj'))}</td>
                      <td>{:array_sum(array_column($vo['oforms'],'tdmj'))}</td>
                      <td>{:$vo['order_price']['total_price']}</td>
                      <td>{:$vo['order_price']['tax']}</td>
                      <td>{:$vo['order_price']['net_price']}</td>
                      <td></td>
                      <td>{:$vo['yw_admin']['truename']}</td>
                      <td>{:$vo['order_price']['biddate']}</td>
                      <td>{:$model->getCommonIsCn($vo['status_yp'])}</td>
                      <td>{:$model->getCommonIsCn($vo['status_bg'])}</td>
                      <td>{:timeDef($vo['ctime'])}</td>
                      <td>{:$model->getClientTypeCn($vo['client_type'])}</td>
                      <td>{:$vo['order_price']['remark']}</td>
                      <td>
                        <div class="btn-group btn-group-sm">
                          <a class="btn btn-default" href="{:url('order_gjs/index',['order_id'=>$vo['id']])}" data-bs-toggle="tooltip" title="估价师"><i class="mdi mdi-pencil"></i></a>
                          <a class="btn btn-default" href="{:url('yp',['order_id'=>$vo['id']])}" data-bs-toggle="tooltip" title="预评"><i class="mdi mdi-pencil"></i></a>
                          <a class="btn btn-default" href="{:url('bg',['order_id'=>$vo['id']])}" data-bs-toggle="tooltip" title="报告"><i class="mdi mdi-pencil"></i></a>
                          <a class="btn btn-default" href="{:url('edit',['id'=>$vo['id']])}" data-bs-toggle="tooltip" title="编辑"><i class="mdi mdi-pencil"></i></a>
                          <a class="btn btn-default delete_btn" href="{:url('delete',['id'=>$vo['id']])}" data-bs-toggle="tooltip" title="删除"><i class="mdi mdi-delete"></i></a>
                        </div>
                      </td>
                    </tr>
                  <?php endforeach ?>
                <?php endif ?>
              </tbody>
            </table>
          </div>

          {$page|raw}
          
          
        </div>
      </div>
    </div>
        
  </div>
  
</div>

<div class="modal fade bs-example-modal-lg in" tabindex="-1" id="modal-admin">
  <div class="modal-dialog modal-xl modal-dialog-centered">
    <div class="modal-content">
      <div class="modal-header">
        <h6 class="modal-title" id="exampleModalLiveLabel">分支机构</h6>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">
        <iframe src="" ></iframe>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">关闭</button>
      </div>
    </div>
  </div>
</div>

<script type="text/javascript" src="__STATIC__/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/popper.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/main.min.js"></script>
<!--自定义扩展-->
<script type="text/javascript" src="__STATIC__/common/cch.js"></script>
<script type="text/javascript">
  $(".admin_btn").on('click',function(){
    var department_id = $(this).attr('data-id');
    var company_id = $(this).attr('data-company');
    var url = "{:url('admin/index',[],'')}";
    url = url + '?department_id='+department_id+'&company_id='+company_id;
    $("#modal-admin").find('iframe').attr('src',url);
  });
</script>
</body>
</html>